import { FormSchema } from '/@/components/Table';
export const eventTypeOptions = [
  {
    label: '添加',
    value: 'create',
  },
  {
    label: '修改',
    value: 'save',
  },
  {
    label: '删除',
    value: 'del',
  },
];
export const formSchema: FormSchema[] = [
  {
    field: 'eventTypeSlot',
    label: '事件',
    component: 'Select',
    colProps: {
      span: 24,
    },
    defaultValue: 'create',
    componentProps: {
      options: eventTypeOptions,
    },
    slot: 'eventTypeSlot',
  },
  {
    field: 'deptFields',
    label: '部门',
    component: 'Select',
    colProps: {
      span: 24,
    },
    slot: 'deptFields',
  },
  {
    field: 'userFields',
    label: '用户',
    component: 'Input',
    colProps: {
      span: 24,
    },
    slot: 'userFields',
  },
  {
    field: 'roleDescs',
    label: '角色',
    component: 'Input',
    colProps: {
      span: 24,
    },
    slot: 'roleDescs',
  },
  {
    field: 'userRealNames',
    label: '用户',
    component: 'Input',
    colProps: {
      span: 24,
    },
    slot: 'userRealNames',
  },
  {
    field: 'title',
    label: '标题',
    required: true,
    component: 'Input',
    colProps: {
      span: 24,
    },
    slot: 'title',
  },
  {
    field: 'content',
    label: '内容',
    required: true,
    component: 'InputTextArea',
    colProps: {
      span: 24,
    },
    slot: 'content',
  },
  {
    field: 'way',
    label: '方式',
    component: 'Input',
    colProps: {
      span: 24,
    },
    slot: 'way',
  },
];
